package com.itmck.service.impl;

import com.itmck.dao.UserDao;
import com.itmck.domain.User;
import com.itmck.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class UserServiceImpl implements UserService {


    @Resource
    private UserDao userDao;

    @Override
    public List<User> queryMethod() {
        return userDao.queryMethod();
    }


    @Override
    public void deleteUserById(Long id) {
        userDao.deleteUserById(id);
    }

    @Override
    public void updateUserById(User user) {
        userDao.updateUserById(user);
    }

    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }
}
